{include file='/public/header'}

<div class="am-cf admin-main">
    {include file='/public/sidebar'}

    <!-- content start -->
    <div class="admin-content">
        <div class="admin-content-body">
            <div class="am-cf am-padding am-padding-bottom-0">
                <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">添加文档</strong> / <small>add doc</small></div>
            </div>

            <hr/>

            <div class="am-g">
                <div class="am-u-sm-12 am-u-md-4 am-u-md-push-8"></div>

                <div class="am-u-sm-12 am-u-md-8 am-u-md-pull-4">
                    <form class="am-form am-form-horizontal" id="ajax-form" action="{:url('/admin/doc/edit')}" method="post" data-am-validator>
                        <input type="hidden" name="id" value="{$info['id']}" />
                        <div class="am-form-group">
                            <label for="name" class="am-u-sm-3 am-form-label">文档名称</label>
                            <div class="am-u-sm-9">
                                <input type="text" id="name" name="name" placeholder="文档名称" value="{$info.name}" required>
                            </div>
                        </div>

                        <div class="am-form-group">
                            <div class="am-u-sm-9 am-u-sm-push-3">
                                <button type="submit" class="am-btn am-btn-primary">保存修改</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <!-- content end -->
</div>

{include file='/public/footer'}